using System;
using System.Collections;
using System.Collections.Generic;

using NHibernate.Data.Base;

namespace NHibernate.Data.Models
{
    public partial class Person : BusinessBase<long>
    {
        #region Declarations

		
		private long _corporation = default(Int64);
		private long _winery = default(Int64);
		private string _localName = String.Empty;
		private string _internationalName = String.Empty;
		private string _telephone = String.Empty;
		private string _fax = String.Empty;
		private string _msn = String.Empty;
		private string _skype = String.Empty;
		private string _qq = String.Empty;
		private string _aol = String.Empty;
		private string _icq = String.Empty;
		private string _address = String.Empty;
		private string _zip = String.Empty;
		private string _email = String.Empty;
		private string _introduction = String.Empty;
		private long _category = default(Int64);
		private bool _isCorporation = default(Boolean);
		private bool _isWinery = default(Boolean);
		
		
		
        #endregion

        #region Constructors

        public Person() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_corporation);
			sb.Append(_winery);
			sb.Append(_localName);
			sb.Append(_internationalName);
			sb.Append(_telephone);
			sb.Append(_fax);
			sb.Append(_msn);
			sb.Append(_skype);
			sb.Append(_qq);
			sb.Append(_aol);
			sb.Append(_icq);
			sb.Append(_address);
			sb.Append(_zip);
			sb.Append(_email);
			sb.Append(_introduction);
			sb.Append(_category);
			sb.Append(_isCorporation);
			sb.Append(_isWinery);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual long Corporation
        {
            get { return _corporation; }
			set
			{
				OnCorporationChanging();
				_corporation = value;
				OnCorporationChanged();
			}
        }
		partial void OnCorporationChanging();
		partial void OnCorporationChanged();
		
		public virtual long Winery
        {
            get { return _winery; }
			set
			{
				OnWineryChanging();
				_winery = value;
				OnWineryChanged();
			}
        }
		partial void OnWineryChanging();
		partial void OnWineryChanged();
		
		public virtual string LocalName
        {
            get { return _localName; }
			set
			{
				OnLocalNameChanging();
				_localName = value;
				OnLocalNameChanged();
			}
        }
		partial void OnLocalNameChanging();
		partial void OnLocalNameChanged();
		
		public virtual string InternationalName
        {
            get { return _internationalName; }
			set
			{
				OnInternationalNameChanging();
				_internationalName = value;
				OnInternationalNameChanged();
			}
        }
		partial void OnInternationalNameChanging();
		partial void OnInternationalNameChanged();
		
		public virtual string Telephone
        {
            get { return _telephone; }
			set
			{
				OnTelephoneChanging();
				_telephone = value;
				OnTelephoneChanged();
			}
        }
		partial void OnTelephoneChanging();
		partial void OnTelephoneChanged();
		
		public virtual string Fax
        {
            get { return _fax; }
			set
			{
				OnFaxChanging();
				_fax = value;
				OnFaxChanged();
			}
        }
		partial void OnFaxChanging();
		partial void OnFaxChanged();
		
		public virtual string Msn
        {
            get { return _msn; }
			set
			{
				OnMsnChanging();
				_msn = value;
				OnMsnChanged();
			}
        }
		partial void OnMsnChanging();
		partial void OnMsnChanged();
		
		public virtual string Skype
        {
            get { return _skype; }
			set
			{
				OnSkypeChanging();
				_skype = value;
				OnSkypeChanged();
			}
        }
		partial void OnSkypeChanging();
		partial void OnSkypeChanged();
		
		public virtual string Qq
        {
            get { return _qq; }
			set
			{
				OnQqChanging();
				_qq = value;
				OnQqChanged();
			}
        }
		partial void OnQqChanging();
		partial void OnQqChanged();
		
		public virtual string Aol
        {
            get { return _aol; }
			set
			{
				OnAolChanging();
				_aol = value;
				OnAolChanged();
			}
        }
		partial void OnAolChanging();
		partial void OnAolChanged();
		
		public virtual string Icq
        {
            get { return _icq; }
			set
			{
				OnIcqChanging();
				_icq = value;
				OnIcqChanged();
			}
        }
		partial void OnIcqChanging();
		partial void OnIcqChanged();
		
		public virtual string address
        {
            get { return _address; }
			set
			{
				OnaddressChanging();
				_address = value;
				OnaddressChanged();
			}
        }
		partial void OnaddressChanging();
		partial void OnaddressChanged();
		
		public virtual string Zip
        {
            get { return _zip; }
			set
			{
				OnZipChanging();
				_zip = value;
				OnZipChanged();
			}
        }
		partial void OnZipChanging();
		partial void OnZipChanged();
		
		public virtual string Email
        {
            get { return _email; }
			set
			{
				OnEmailChanging();
				_email = value;
				OnEmailChanged();
			}
        }
		partial void OnEmailChanging();
		partial void OnEmailChanged();
		
		public virtual string Introduction
        {
            get { return _introduction; }
			set
			{
				OnIntroductionChanging();
				_introduction = value;
				OnIntroductionChanged();
			}
        }
		partial void OnIntroductionChanging();
		partial void OnIntroductionChanged();
		
		public virtual long Category
        {
            get { return _category; }
			set
			{
				OnCategoryChanging();
				_category = value;
				OnCategoryChanged();
			}
        }
		partial void OnCategoryChanging();
		partial void OnCategoryChanged();
		
		public virtual bool IsCorporation
        {
            get { return _isCorporation; }
			set
			{
				OnIsCorporationChanging();
				_isCorporation = value;
				OnIsCorporationChanged();
			}
        }
		partial void OnIsCorporationChanging();
		partial void OnIsCorporationChanged();
		
		public virtual bool IsWinery
        {
            get { return _isWinery; }
			set
			{
				OnIsWineryChanging();
				_isWinery = value;
				OnIsWineryChanged();
			}
        }
		partial void OnIsWineryChanging();
		partial void OnIsWineryChanged();
		
        #endregion
    }
}
